package com.attendance.www.hr.entitys;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LinkAddressExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LinkAddressExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLinkAddressIdIsNull() {
            addCriterion("link_address_id is null");
            return (Criteria) this;
        }

        public Criteria andLinkAddressIdIsNotNull() {
            addCriterion("link_address_id is not null");
            return (Criteria) this;
        }

        public Criteria andLinkAddressIdEqualTo(Integer value) {
            addCriterion("link_address_id =", value, "linkAddressId");
            return (Criteria) this;
        }

        public Criteria andLinkAddressIdNotEqualTo(Integer value) {
            addCriterion("link_address_id <>", value, "linkAddressId");
            return (Criteria) this;
        }

        public Criteria andLinkAddressIdGreaterThan(Integer value) {
            addCriterion("link_address_id >", value, "linkAddressId");
            return (Criteria) this;
        }

        public Criteria andLinkAddressIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("link_address_id >=", value, "linkAddressId");
            return (Criteria) this;
        }

        public Criteria andLinkAddressIdLessThan(Integer value) {
            addCriterion("link_address_id <", value, "linkAddressId");
            return (Criteria) this;
        }

        public Criteria andLinkAddressIdLessThanOrEqualTo(Integer value) {
            addCriterion("link_address_id <=", value, "linkAddressId");
            return (Criteria) this;
        }

        public Criteria andLinkAddressIdIn(List<Integer> values) {
            addCriterion("link_address_id in", values, "linkAddressId");
            return (Criteria) this;
        }

        public Criteria andLinkAddressIdNotIn(List<Integer> values) {
            addCriterion("link_address_id not in", values, "linkAddressId");
            return (Criteria) this;
        }

        public Criteria andLinkAddressIdBetween(Integer value1, Integer value2) {
            addCriterion("link_address_id between", value1, value2, "linkAddressId");
            return (Criteria) this;
        }

        public Criteria andLinkAddressIdNotBetween(Integer value1, Integer value2) {
            addCriterion("link_address_id not between", value1, value2, "linkAddressId");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdIsNull() {
            addCriterion("employee_id is null");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdIsNotNull() {
            addCriterion("employee_id is not null");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdEqualTo(Integer value) {
            addCriterion("employee_id =", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdNotEqualTo(Integer value) {
            addCriterion("employee_id <>", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdGreaterThan(Integer value) {
            addCriterion("employee_id >", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("employee_id >=", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdLessThan(Integer value) {
            addCriterion("employee_id <", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdLessThanOrEqualTo(Integer value) {
            addCriterion("employee_id <=", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdIn(List<Integer> values) {
            addCriterion("employee_id in", values, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdNotIn(List<Integer> values) {
            addCriterion("employee_id not in", values, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdBetween(Integer value1, Integer value2) {
            addCriterion("employee_id between", value1, value2, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("employee_id not between", value1, value2, "employeeId");
            return (Criteria) this;
        }

        public Criteria andRequestIdIsNull() {
            addCriterion("request_id is null");
            return (Criteria) this;
        }

        public Criteria andRequestIdIsNotNull() {
            addCriterion("request_id is not null");
            return (Criteria) this;
        }

        public Criteria andRequestIdEqualTo(Integer value) {
            addCriterion("request_id =", value, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdNotEqualTo(Integer value) {
            addCriterion("request_id <>", value, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdGreaterThan(Integer value) {
            addCriterion("request_id >", value, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("request_id >=", value, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdLessThan(Integer value) {
            addCriterion("request_id <", value, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdLessThanOrEqualTo(Integer value) {
            addCriterion("request_id <=", value, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdIn(List<Integer> values) {
            addCriterion("request_id in", values, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdNotIn(List<Integer> values) {
            addCriterion("request_id not in", values, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdBetween(Integer value1, Integer value2) {
            addCriterion("request_id between", value1, value2, "requestId");
            return (Criteria) this;
        }

        public Criteria andRequestIdNotBetween(Integer value1, Integer value2) {
            addCriterion("request_id not between", value1, value2, "requestId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdIsNull() {
            addCriterion("retroactive_id is null");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdIsNotNull() {
            addCriterion("retroactive_id is not null");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdEqualTo(Integer value) {
            addCriterion("retroactive_id =", value, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdNotEqualTo(Integer value) {
            addCriterion("retroactive_id <>", value, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdGreaterThan(Integer value) {
            addCriterion("retroactive_id >", value, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("retroactive_id >=", value, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdLessThan(Integer value) {
            addCriterion("retroactive_id <", value, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdLessThanOrEqualTo(Integer value) {
            addCriterion("retroactive_id <=", value, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdIn(List<Integer> values) {
            addCriterion("retroactive_id in", values, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdNotIn(List<Integer> values) {
            addCriterion("retroactive_id not in", values, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdBetween(Integer value1, Integer value2) {
            addCriterion("retroactive_id between", value1, value2, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andRetroactiveIdNotBetween(Integer value1, Integer value2) {
            addCriterion("retroactive_id not between", value1, value2, "retroactiveId");
            return (Criteria) this;
        }

        public Criteria andSalaryRequestIdIsNull() {
            addCriterion("salary_request_id is null");
            return (Criteria) this;
        }

        public Criteria andSalaryRequestIdIsNotNull() {
            addCriterion("salary_request_id is not null");
            return (Criteria) this;
        }

        public Criteria andSalaryRequestIdEqualTo(Integer value) {
            addCriterion("salary_request_id =", value, "salaryRequestId");
            return (Criteria) this;
        }

        public Criteria andSalaryRequestIdNotEqualTo(Integer value) {
            addCriterion("salary_request_id <>", value, "salaryRequestId");
            return (Criteria) this;
        }

        public Criteria andSalaryRequestIdGreaterThan(Integer value) {
            addCriterion("salary_request_id >", value, "salaryRequestId");
            return (Criteria) this;
        }

        public Criteria andSalaryRequestIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("salary_request_id >=", value, "salaryRequestId");
            return (Criteria) this;
        }

        public Criteria andSalaryRequestIdLessThan(Integer value) {
            addCriterion("salary_request_id <", value, "salaryRequestId");
            return (Criteria) this;
        }

        public Criteria andSalaryRequestIdLessThanOrEqualTo(Integer value) {
            addCriterion("salary_request_id <=", value, "salaryRequestId");
            return (Criteria) this;
        }

        public Criteria andSalaryRequestIdIn(List<Integer> values) {
            addCriterion("salary_request_id in", values, "salaryRequestId");
            return (Criteria) this;
        }

        public Criteria andSalaryRequestIdNotIn(List<Integer> values) {
            addCriterion("salary_request_id not in", values, "salaryRequestId");
            return (Criteria) this;
        }

        public Criteria andSalaryRequestIdBetween(Integer value1, Integer value2) {
            addCriterion("salary_request_id between", value1, value2, "salaryRequestId");
            return (Criteria) this;
        }

        public Criteria andSalaryRequestIdNotBetween(Integer value1, Integer value2) {
            addCriterion("salary_request_id not between", value1, value2, "salaryRequestId");
            return (Criteria) this;
        }

        public Criteria andUrlKeyIsNull() {
            addCriterion("url_key is null");
            return (Criteria) this;
        }

        public Criteria andUrlKeyIsNotNull() {
            addCriterion("url_key is not null");
            return (Criteria) this;
        }

        public Criteria andUrlKeyEqualTo(String value) {
            addCriterion("url_key =", value, "urlKey");
            return (Criteria) this;
        }

        public Criteria andUrlKeyNotEqualTo(String value) {
            addCriterion("url_key <>", value, "urlKey");
            return (Criteria) this;
        }

        public Criteria andUrlKeyGreaterThan(String value) {
            addCriterion("url_key >", value, "urlKey");
            return (Criteria) this;
        }

        public Criteria andUrlKeyGreaterThanOrEqualTo(String value) {
            addCriterion("url_key >=", value, "urlKey");
            return (Criteria) this;
        }

        public Criteria andUrlKeyLessThan(String value) {
            addCriterion("url_key <", value, "urlKey");
            return (Criteria) this;
        }

        public Criteria andUrlKeyLessThanOrEqualTo(String value) {
            addCriterion("url_key <=", value, "urlKey");
            return (Criteria) this;
        }

        public Criteria andUrlKeyLike(String value) {
            addCriterion("url_key like", value, "urlKey");
            return (Criteria) this;
        }

        public Criteria andUrlKeyNotLike(String value) {
            addCriterion("url_key not like", value, "urlKey");
            return (Criteria) this;
        }

        public Criteria andUrlKeyIn(List<String> values) {
            addCriterion("url_key in", values, "urlKey");
            return (Criteria) this;
        }

        public Criteria andUrlKeyNotIn(List<String> values) {
            addCriterion("url_key not in", values, "urlKey");
            return (Criteria) this;
        }

        public Criteria andUrlKeyBetween(String value1, String value2) {
            addCriterion("url_key between", value1, value2, "urlKey");
            return (Criteria) this;
        }

        public Criteria andUrlKeyNotBetween(String value1, String value2) {
            addCriterion("url_key not between", value1, value2, "urlKey");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}